import http from '@/until/http'

// 添加新的新闻标签
export const addTag = () => {

}

// 修改新闻标签页
export const updateTag = async (tag_id: number, tag_name: string) => {
    return http.put('/tag/update',{tag_id,tag_name})
}

// 删除新闻标签
export const deleteTag = async (tag_id: number) => {
    return await http.delete('/tag/delete/' + tag_id)
} 

// 获取新闻标签列表
export const getTagList = async (page: number,pageSize: number) => {
    return await http.get('/tag/query',{params:{page,pageSize}})
}